import sys
__author__ = 'Ian'
loginDict={"Ian":"Bouldin", "Brad":"Zylstra"}
print ("Welcome to Inferno v1.0")
while True:
    prompt1 = "Please Provide Your User Name: "
    username = raw_input(prompt1)
    try:
        passwordLogin=loginDict[username]
        print "Welcome %s!" % username
        break
    except:
        print "username not in database"
for x in range (2, -1, -1):
    prompt2 = "Please Provide Your Password: "
    password = raw_input(prompt2)
    if password==passwordLogin:
        print "You have successfully logged in!"
        break
    else:
        print"Password incorrect, you have "+str(x)+" login attempt(s) remaining!"
        if x==0:
            print "You are kicked off the system, your ip address has been recorded"
            sys.exit()